cmake_minimum_required(VERSION 3.16)

set(COMMON_CMAKE_INCLUDE_PATH
    ${CMAKE_SOURCE_DIR}/cmake
)

include(${COMMON_CMAKE_INCLUDE_PATH}/common.cmake)

project(prog_c_cpp C CXX)

add_subdirectory(lib)
add_subdirectory(demos)

enable_testing()
add_subdirectory(tests)

install(DIRECTORY
    ${CMAKE_SOURCE_DIR}/inc/ DESTINATION ${CMAKE_INSTALL_PREFIX}/include
)

install(FILES
    ${CMAKE_SOURCE_DIR}/presets/env_runtime.sh DESTINATION ${CMAKE_INSTALL_PREFIX}
)

